<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<html>
<head>
    <title>叩丁狼客户关系管理系统-系统菜单管理</title>
    <%@ include file="/WEB-INF/views/common/common.jsp" %>
    <script type="text/javascript" src="/static/js/system/systemMenu.js"></script>
</head>
<body>
<!--系统菜单列表-->
<table id="menu_datagrid"></table>

<!--系统菜单工具栏-->
<div id="tb">
    <shiro:hasPermission name="systemMenu:save">
        <a href="JavaScript:;" class="easyui-linkbutton" data-cmd="add"
           data-options="iconCls:'icon-add',plain:true">添加</a>
    </shiro:hasPermission>
    <shiro:hasPermission name="systemMenu:edit">
        <a href="JavaScript:;" class="easyui-linkbutton" data-cmd="edit"
           data-options="iconCls:'icon-edit',plain:true">编辑</a>
    </shiro:hasPermission>

    <shiro:hasPermission name="systemMenu:delete">
        <a href="JavaScript:;" class="easyui-linkbutton" data-cmd="remove"
           data-options="iconCls:'icon-remove',plain:true">删除</a>
    </shiro:hasPermission>

    <a href="JavaScript:;" class="easyui-linkbutton" data-cmd="reload"
       data-options="iconCls:'icon-reload',plain:true">刷新</a>

</div>

<!--系统菜单的添加与编辑对话框-->
<div id="menu_dialog">
    <form id="editForm" method="post">

        <input type="hidden" name="id" id="empId">

        <table align="center" style="margin-top: 20px;
                border-collapse:separate; border-spacing:0px 10px;">
            <tr>
                <td>菜单名字:</td>
                <td><input class="easyui-textbox" name="text"/></td>
            </tr>
            <tr>
                <td>菜单URL:</td>
                <td><input class="easyui-textbox" name="url"/></td>
            </tr>
            <tr>
                <td align="right">父级菜单:</td>
                <td>

                    <input class="easyui-combobox" name="parent.id" id="parentCombox" data-options="
                        url:'/systemMenu/listData.do',
                        valueField:'id',
                        textField:'text',
                        panelHeight:'auto'

                    ">
                </td>
            </tr>
        </table>
    </form>
</div>

<!--编辑与添加对话框的按钮-->
<div id="bb">
    <a href="JavaScript:;" class="easyui-linkbutton"
       iconCls="icon-save" data-cmd="save">保存</a>
    <a href="JavaScript:;" class="easyui-linkbutton"
       iconCls="icon-cancel" data-cmd="cancel">关闭</a>
</div>


</body>
</html>
